package com.gml.design.other.abstractfactory;

/**
 * @ClassName : NewFactory
 * @Description :
 * @Author : gml
 * @Date: 2021-04-07 10:44
 */
public class NewFactory extends AbstractFactory{
    @Override
    Vehicle createVehicle() {
        return new Car();
    }

    @Override
    Food eatFood() {
        return new Bread();
    }

    @Override
    Weapon createWeapon() {
        return new AK47();
    }
}
